package com.clouds.wms.service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.clouds.wms.bean.Salmb;
import com.clouds.wms.bean.Salmh;
import com.clouds.wms.exception.DatabaseException;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

public interface SalmhService {
	PagesBean getSalmhList(String mgaa, String mgab, int offset,int pageSize)throws SysException;
	int saveSalmh(Salmh salmh)throws SysException;
	int updateSalmh(Salmh salmh)throws SysException;
	int getMaxMhac()throws SysException;
	int delSalmh(String mhaa, String mhab, String mhacs)throws SysException;
	int changeStatus(String mhaa, String mhab, String status)throws SysException;
	@Transactional(propagation=Propagation.REQUIRED, rollbackFor=DatabaseException.class)
	void delSalmgmh(String mhaa, String mhab)throws SysException;
	void delSalmhAll(String mhaa, String mhab)throws SysException;
}
